<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${order.id}"></title>
    <script type="text/javascript" th:src="@{/jquery.3.6.0.js}"></script>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
        ctxPath = /*[[@{/}]]*/ '';
        /*]]>*/
        console.info(ctxPath);
    </script>　
</head>
<body>
<li th:text="${order.id}"></li>
<li th:text="${order.statusText}"></li>
<li th:text="${order.createTime}"></li>
<li th:text="${order.payTime}"></li>
<li>
    <a th:onclick="'javascript:goback()'" href="javascript:void(0)">返回</a>
</li>
</body>
<script>
    function goback() {
        window.location.href = ctxPath + 'order';
    }
</script>
</html>